AHardwareBuffer_Desc

Buffer description. Used for allocating new buffers and querying parameters of existing ones.

Members

Variables

format
uint32_t format;

< One of AHardwareBuffer_Format.

height
uint32_t height;

< Height in pixels.

layers
uint32_t layers;

Number of images in an image array. AHardwareBuffers with one layer correspond to regular 2D textures. AHardwareBuffers with more than layer correspond to texture arrays. If the layer count is a multiple of 6 and the usage flag AHARDWAREBUFFER_USAGE_GPU_CUBE_MAP is present, the buffer is a cube map or a cube map array.

rfu0
uint32_t rfu0;

< Initialize to zero, reserved for future use.

rfu1
uint64_t rfu1;

< Initialize to zero, reserved for future use.

stride
uint32_t stride;

< Row stride in pixels, ignored for AHardwareBuffer_allocate()

usage
uint64_t usage;

< Combination of AHardwareBuffer_UsageFlags.

width
uint32_t width;

< Width in pixels.

Meta